﻿@model VehicleManagement.Models.BreakRules

@{
    ViewBag.Title = "Edit";
}
<script type="text/javascript">
    $(function () {
        $("#Date").datepicker({
            showOn: "button",
            buttonImage: "/Content/themes/picture/calendar.gif",
            buttonImageOnly: true
        });
        $.post("/Driver/GetDriverNameList", {},
            function (data) {
                $("#DriverName").empty();
                $.each(data, function () {
                    $("#DriverName").append('<option>' + this + '</option>');
                });
                $("#DriverName").val('@Model.DriverName');
            });
        $.post("/CarInfo/GetCarNumberList", {},
            function (data) {
                $("#CarNumber").empty();
                $.each(data, function () {
                    $("#CarNumber").append('<option>' + this + '</option>');
                });
                $("#CarNumber").val('@Model.CarNumber');
            });
    });
</script>
<div class="mas">
<div class="toptitle">
   司机负责人管理平台
</div>
@*<div class="car"></div>*@
@Html.Partial("_PartviewDriverManager")
<div class="rightshow">

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
  <fieldset>
        <legend></legend>
       <div class="box">
        <div class="box-title">
            <span>@Html.ActionLink("返回违章列表", "Index")</span>
        </div>
        <div class="box-detail-nopic-edit" >
            <div class="box-detail1-linetype1 hide">
                <span class="labeldisplay">@Html.LabelFor(model => model.BreakRulesID):</span>
                @Html.EditorFor(model => model.BreakRulesID)
            </div>
            <div class="box-detail1-linetype1">
                <span class="labeldisplay">@Html.LabelFor(model => model.CarNumber):</span>
               @Html.DropDownListFor(model => model.CarNumber, new SelectList(new[] { Model.CarNumber }, Model.CarNumber))
                @Html.ValidationMessageFor(model => model.CarNumber)
            </div>   
            <div class="box-detail1-linetype1">
                <span class="labeldisplay">@Html.LabelFor(model => model.DriverName):</span>
                @Html.DropDownListFor(model => model.DriverName, new SelectList(new[] { Model.DriverName }, Model.DriverName))
                @Html.ValidationMessageFor(model => model.DriverName)  
            </div>
            <div class="box-detail1-linetype1">
                <span class="labeldisplay">@Html.LabelFor(model => model.Action):</span>
                @Html.EditorFor(model => model.Action)@Html.ValidationMessageFor(model => model.Action)
            </div>
            <div class="box-detail1-linetype1">
                <span class="labeldisplay">@Html.LabelFor(model => model.Blame):</span>
                @Html.EditorFor(model => model.Blame)@Html.ValidationMessageFor(model => model.Blame)
            </div>
            <div class="box-detail1-linetype1">
                <span class="labeldisplay">@Html.LabelFor(model => model.Cost):</span>
                @Html.EditorFor(model => model.Cost)@Html.ValidationMessageFor(model => model.Cost)
            </div>
            <div class="box-detail1-linetype1">
                <span class="labeldisplay">@Html.LabelFor(model => model.Date):</span>
                @Html.EditorFor(model => model.Date)@Html.ValidationMessageFor(model => model.Date)
            </div>
            <div class="box-detail1-linetype1">
                <span class="labeldisplay">@Html.LabelFor(model => model.Location):</span>
                @Html.EditorFor(model => model.Location)@Html.ValidationMessageFor(model => model.Location)
            </div>
            <div class="box-detail1-linetype1">
                <span class="labeldisplay">@Html.LabelFor(model => model.Path):</span>
                @Html.EditorFor(model => model.Path)@Html.ValidationMessageFor(model => model.Path)
            </div>
            <div class="box-detail1-linetype1">
                <span class="labeldisplay">@Html.LabelFor(model => model.Reason):</span>
                @Html.EditorFor(model => model.Reason)@Html.ValidationMessageFor(model => model.Reason)
            </div>
            <div class="box-detail1-linetype1">
                <span class="labeldisplay">@Html.LabelFor(model => model.Unit):</span>
                @Html.EditorFor(model => model.Unit)@Html.ValidationMessageFor(model => model.Unit)
            </div>
            <div class="box-detail1-linetype1">
                <span class="labeldisplay">@Html.LabelFor(model => model.Remark):</span>
                @Html.TextAreaFor(model => model.Remark)
            </div>
            
            <input class="button" type="submit" value="修 改" />
        </div>
    </div>

    </fieldset>
}

<div>
 
</div>


</div>

<div class="clear"></div>
	
</div>

